package com.zhongchaowuye.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.zhongchaowuye.dao.B_ShChDYDao;
import com.zhongchaowuye.pojo.B_ShChDY;
import com.zhongchaowuye.service.B_ShChDYService;

@Transactional
@Service("b_ShChDYService")
public class B_ShChDYServiceImpl implements B_ShChDYService
{
	@Resource
	B_ShChDYDao b_ShChDYDao;
	
	@Override
	public int insertB_ShChDY(B_ShChDY b_ShChDY) {
		// TODO Auto-generated method stub
		return b_ShChDYDao.insertB_ShChDY(b_ShChDY);
	}

	@Override
	public int updateB_ShChDY(B_ShChDY b_ShChDY) {
		// TODO Auto-generated method stub
		return b_ShChDYDao.updateB_ShChDY(b_ShChDY);
	}

	@Override
	public int delB_ShChDY(B_ShChDY b_ShChDY) {
		// TODO Auto-generated method stub
		return b_ShChDYDao.delB_ShChDY(b_ShChDY);
	}
	
	@Override
	public B_ShChDY getB_ShChDY(B_ShChDY b_ShChDY) {
		// TODO Auto-generated method stub
		return b_ShChDYDao.getB_ShChDY(b_ShChDY);
	}
	
	@Override
	public List<Map<String, Object>> getB_ShChDYList(B_ShChDY b_ShChDY) {
		// TODO Auto-generated method stub
		PageHelper.startPage(b_ShChDY.getPageIndex(),b_ShChDY.getPageSize(),true);
		return b_ShChDYDao.getB_ShChDYList(b_ShChDY);
	}
}
